package com.wicket.okrapp.biz.service.nb;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.wicket.okrapp.common.util.CommonFunctionHelper;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import com.wicket.okrapp.biz.service.dto.req.ImplementTypeCodeFieldsAcceptReqDto;
import com.wicket.okrapp.biz.service.dto.res.ImplementTypeCodeFieldsAcceptRespDto;
import com.wicket.okrapp.biz.service.dto.req.ImplementGainInParameterFieldsReqDto;
import com.wicket.okrapp.biz.service.dto.res.ImplementGainInParameterFieldsRespDto;
import com.wicket.okrapp.biz.service.dto.req.ImplementAcceptFieldReqDto;
import com.wicket.okrapp.biz.service.dto.res.ImplementAcceptFieldRespDto;
import com.wicket.okrapp.biz.service.dto.req.ImplementObtainPageTotalsReqDto;
import com.wicket.okrapp.biz.service.dto.res.ImplementObtainPageTotalsRespDto;
import com.wicket.okrapp.biz.service.dto.req.ImplementAcceptFieldUseWorkTaskReqDto;
import com.wicket.okrapp.biz.service.dto.res.ImplementAcceptFieldUseWorkTaskRespDto;
import com.wicket.okrapp.biz.service.dto.req.ImplementFourthReceivingFieldReqDto;
import com.wicket.okrapp.biz.service.dto.res.ImplementFourthReceivingFieldRespDto;

/**
 * @author ： 手工接入方法
 * @since 2022/5/28 15:32
 *
 *
 * @version 1.0
 */
@Service
public class NbQuestion {
/**
      * code:receptionService
      * name:M3接收出参数据集结果
      * desc:undefined
      * gen by moon at 11/8/2023, 3:53:59 PM
      * 
      **/
     @Trace(operationName = "M3接收出参数据集结果")
     @Tags({@Tag(key = "参数",value = "arg[0]"),
     @Tag(key = "返回值",value = "returnedObj")})
      public ImplementTypeCodeFieldsAcceptRespDto implementTypeCodeFieldsAccept(ImplementTypeCodeFieldsAcceptReqDto reqDto) {
         return BeanUtil.toBean(reqDto,ImplementTypeCodeFieldsAcceptRespDto.class);
      }
/**
      * code:receptionService
      * name:M3约定消息层级为1-5
      * desc:undefined
      * gen by moon at 11/28/2023, 3:50:44 PM
      *
      **/
     @Trace(operationName = "M3约定消息层级为1-5")
     @Tags({@Tag(key = "参数",value = "arg[0]"),
     @Tag(key = "返回值",value = "returnedObj")})
      public ImplementGainInParameterFieldsRespDto implementGainInParameterFields(ImplementGainInParameterFieldsReqDto reqDto) {
         return BeanUtil.toBean(reqDto,ImplementGainInParameterFieldsRespDto.class);
      }
/**
      * code:receptionService
      * name:M3-约定：系统当前时间
      * desc:undefined
      * gen by moon at 11/30/2023, 8:30:06 PM
      *
      **/
     @Trace(operationName = "M3-约定：系统当前时间")
     @Tags({@Tag(key = "参数",value = "arg[0]"),
     @Tag(key = "返回值",value = "returnedObj")})
      public ImplementAcceptFieldRespDto implementAcceptField(ImplementAcceptFieldReqDto reqDto) {
         return BeanUtil.toBean(reqDto,ImplementAcceptFieldRespDto.class);
      }
/**
      * code:obtainPageTotals
      * name:M3-执行获取分页总条数（特殊方法）
      * desc:undefined
      * gen by moon at 12/8/2023, 11:21:46 AM
      *
      **/
     @Trace(operationName = "M3-执行获取分页总条数（特殊方法）")
     @Tags({@Tag(key = "参数",value = "arg[0]"),
     @Tag(key = "返回值",value = "returnedObj")})
      public ImplementObtainPageTotalsRespDto implementObtainPageTotals(ImplementObtainPageTotalsReqDto reqDto) {
         ImplementObtainPageTotalsRespDto retData = new ImplementObtainPageTotalsRespDto();
         retData.setTotals(0L);
         Page<?> page =  CommonFunctionHelper.getBaseInfoFromLocal().getPageInfo();
         if(page!=null){
             retData.setTotals(page.getTotal());
         }
         return retData;
      }
/**
      * code:receptionService
      * name:M3约定发送消息业务场景
      * desc:undefined
      * gen by moon at 1/1/2024, 9:14:53 PM
      *
      **/
     @Trace(operationName = "M3约定发送消息业务场景")
     @Tags({@Tag(key = "参数",value = "arg[0]"),
     @Tag(key = "返回值",value = "returnedObj")})
      public ImplementAcceptFieldUseWorkTaskRespDto implementAcceptFieldUseWorkTask(ImplementAcceptFieldUseWorkTaskReqDto reqDto) {
         return BeanUtil.toBean(reqDto,ImplementAcceptFieldUseWorkTaskRespDto.class);
      }
/**
      * code:receptionService
      * name:M3-约定：问题状态
      * desc:undefined
      * gen by moon at 1/3/2024, 5:01:27 AM
      *
      **/
     @Trace(operationName = "M3-约定：问题状态")
     @Tags({@Tag(key = "参数",value = "arg[0]"),
     @Tag(key = "返回值",value = "returnedObj")})
      public ImplementFourthReceivingFieldRespDto implementFourthReceivingField(ImplementFourthReceivingFieldReqDto reqDto) {
         return BeanUtil.toBean(reqDto,ImplementFourthReceivingFieldRespDto.class);
      }
  //手工接入方法
}
